Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render: convert tmotion vectors to render basis #11611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcin-serwin
Copy link
Contributor

Description

When using SDL_ConvertEventToRenderCoordinates with SDL_EVENT_FINGER_MOTION events it converts x and y coordinates but does not convert the the dx and the dy unlike xrel and yrel of mouse motion events. This is means that these are rather useless after conversion. This change unifies this behavior between touch and mouse motion events.

Existing Issue(s)

N/A

When using `SDL_ConvertEventToRenderCoordinates` with
`SDL_EVENT_FINGER_MOTION` events it converts `x` and `y` coordinates but
does not convert the the `dx` and the `dy` unlike `xrel` and `yrel` of
mouse motion events. This is means that these are rather useless after
conversion. This change unifies this behavior between touch and mouse
motion events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant